<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
include_once("../config.inc.php");

session_start();
$_LangPath = "index";
include_once("admin_encoding.php");
include_once(__Language_Path."/selectlanguage_admin.php");
$fp = @file(__Root_Path."/indexpage/index_admin.html");
$fp = implode("", $fp);
$fp = setHTMLCharset($fp);
$fp = str_replace("{Lang}", $_intLang, $fp);

$fp = str_replace("{STag3}", (($_intLang == 3)?"selected":""), $fp);
$fp = str_replace("{STag1}", (($_intLang == 1)?"selected":""), $fp);
while(list($k, $v) = each($_strIndex)){
	$fp = str_replace("{".$k."}", $v, $fp);
}

$strImgVeriword = "";
$intVeriwordLength = 4;
srand((double)microtime()*1000000);
for($i = 0; $i < $intVeriwordLength; $i++) {
	$Char = chr(rand(48, 90));
	while (!preg_match("/[A-Z]/", $Char)){
		$Char = chr(rand(48, 90));
	}
	$strImgVeriword .= $Char;
}
$_SESSION["ImgVeriword"] = $strImgVeriword;

//輸出
WebOutputHTML($fp, 1);
?>